package org.teamh.gui.ingame;

import java.util.HashMap;

import org.teamh.gui.engine.model.Model;
import org.teamh.gui.engine.model.ModelLoader;

public class LoadCreeps {

	HashMap<String,Model> creepModels = new HashMap<String,Model>();

	private Model object;
	private Model Mercury;
	private Model Mako;
	private Model FastNova;
	private Model LargeManta;
	private Model Demeter;
	private Model Ray;
	private Model SpeedyRaider;
	private Model BigToucan;
	private Model Vulture;
	private Model Shark;
	private Model RacingMamba;
	private Model HugeTitan;
	private Model Zeus;
	private Model Phoenix;
	private Model ExpressRaptor;
	private Model FatColossus;

	public LoadCreeps() {
		init();
	}

	private void init() {
		Mercury = ModelLoader.getModel("res/model/creep/mercury.obj");
		Mako = ModelLoader.getModel("res/model/creep/mako.obj");
		FastNova = ModelLoader.getModel("res/model/creep/fast_nova.obj");
		LargeManta = ModelLoader.getModel("res/model/creep/large_manta.obj");
		Demeter = ModelLoader.getModel("res/model/creep/demeter.obj");
		Ray = ModelLoader.getModel("res/model/creep/ray.obj");
		SpeedyRaider = ModelLoader.getModel("res/model/creep/speedy raider.obj");
		BigToucan = ModelLoader.getModel("res/model/creep/bigtoucan.obj");
		Vulture = ModelLoader.getModel("res/model/creep/vulture.obj");
		Shark = ModelLoader.getModel("res/model/creep/shark.obj");
		RacingMamba = ModelLoader.getModel("res/model/creep/racing_mamba.obj");
		HugeTitan = ModelLoader.getModel("res/model/creep/huge_titan.obj");
		Zeus = ModelLoader.getModel("res/model/creep/zeus.obj");
		Phoenix = ModelLoader.getModel("res/model/creep/phoenix.obj");
		ExpressRaptor = ModelLoader.getModel("res/model/creep/raptor.obj");
		FatColossus = ModelLoader.getModel("res/model/creep/fat_collosos.obj");

		creepModels.put("mercury",Mercury);
		creepModels.put("mako",Mako);
		creepModels.put("fastnova",FastNova);
		creepModels.put("largemanta",LargeManta);
		creepModels.put("demeter",Demeter);
		creepModels.put("ray",Ray);
		creepModels.put("speedyraider",SpeedyRaider);
		creepModels.put("bigtoucan",BigToucan);
		creepModels.put("vulture",Vulture);
		creepModels.put("shark",Shark);
		creepModels.put("racingmamba",RacingMamba);
		creepModels.put("hugetitan",HugeTitan);
		creepModels.put("zeus",Zeus);
		creepModels.put("phoenix",Phoenix);
		creepModels.put("expressraptor",ExpressRaptor);
		creepModels.put("fatcolossus",FatColossus);

	}

	public void build(String creep) {
			object=creepModels.get(creep.toLowerCase());
	}

	public Model getObject() {
		return object;
	}

	public void setObject(Model object) {
		this.object = object;
	}
}
